package com.example.data.factory.mapper.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.data.factory.entity.entity.Classify;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lhy
 * @since 2025-03-03
 */
public interface ClassifyMapper extends BaseMapper<Classify> {
    @Select("select * from classify where name =#{categoryName}")
    Classify selectByname(String categoryName);

    @Select("select * from classify where name =#{classifyName}")
    Classify selectBynames(String classifyName);
//    @Select ( "select * from classify where  type = #{type}")
//    List<Classify> selectByType(QueryWrapper<Classify> queryWrapper);
}
